package is.bean.department;

import is.bean.NamedEntity;

/**
 * Data container for department bean
 *
 * @author aspr0
 */
public class Department implements NamedEntity
{
    private Integer id;
    private String name;
    private Integer parentId;
    private Integer regionId;
    private Integer bossId;

//    public Department() //nullary constructor to avoid InstantiationException ?
//    {
//    }

    public Integer getBossId()
    {
        return bossId;
    }

    public void setBossId(Integer bossId)
    {
        this.bossId = bossId;
    }

    @Override
    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    @Override
    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Integer getParentId()
    {
        return parentId;
    }

    public void setParentId(Integer parentId)
    {
        this.parentId = parentId;
    }

    public Integer getRegionId()
    {
        return regionId;
    }

    public void setRegionId(Integer regionId)
    {
        this.regionId = regionId;
    }
}
